package com.leo.blog.dto;

import java.util.List;

import com.leo.blog.entity.Resources;
import com.leo.blog.enums.ResourcesStateEnum;

public class ResourcesExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//资源数量
	private int count;
	//操作(增删改的时候使用)
	private Resources resources;
	//列表(查询列表的时候使用)
	private List<Resources> resourcesList;
	
	private List<?> resourcesList2;
	private int type;
			
	//构造函数
	public ResourcesExecution() {
				
	}
			
	//操作失败的时候使用的构造器
	public ResourcesExecution(ResourcesStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
			
	//操作成功的时候使用的构造器
	public ResourcesExecution(ResourcesStateEnum stateEnum, Resources resources) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.resources = resources;
	}
			
	//操作成功的时候使用的构造器
	public ResourcesExecution(ResourcesStateEnum stateEnum, List<Resources> resourcesList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.resourcesList = resourcesList;
	}
	
	//操作成功的时候使用的构造器
	public ResourcesExecution(ResourcesStateEnum stateEnum, List<?> resourcesList2, int type) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.resourcesList2 = resourcesList2;
		this.type = type;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Resources getResources() {
		return resources;
	}

	public void setResources(Resources resources) {
		this.resources = resources;
	}

	public List<Resources> getResourcesList() {
		return resourcesList;
	}

	public void setResourcesList(List<Resources> resourcesList) {
		this.resourcesList = resourcesList;
	}

	public List<?> getResourcesList2() {
		return resourcesList2;
	}

	public void setResourcesList2(List<?> resourcesList2) {
		this.resourcesList2 = resourcesList2;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	
	
	
}
